#include <stdio.h>
#include <string.h>
#include "Welcome.h"
#include "End.h"
#include "GetChessBoard.h"
#include "Rule.h"
#include "Gameover.h"

void PlayChess()
{
	char chess[16][16] = {0};
	int i;
F:	bzero(chess,sizeof(chess));
	i = Welcome();
	if(i == 1)
	{
F1:		GetChessBoard(chess);
		Gameover();
		int k;
		scanf("%d",&k);
		if(k == 1)
		{
			bzero(chess,sizeof(chess));
			goto F1;
		}
		else
		{
			goto F;
		}
	} 
	else if(i == 2)
	{
		Rule();
		sleep(6);
		goto F;
	}
	else if(i == 3)
	{
		End();
	}
	else if(i == 4)
	{
		printf("						  制作人  :张 坤\n");
		sleep(2);
		printf("						  制作时间:2021.02.04\n");
		sleep(2);
		printf("						  联系方式\n");
		sleep(1);
		printf("							   QQ:2579343397\n");
		printf("							   WX:zk0981\n\n\n");
		sleep(4);
		goto F;
	}
}
